<template>
  <u-picker :show="show" :columns="columns" @confirm="confirm" @cancel="cancel" :title="title"
    confirmColor="#38C9CE"></u-picker>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    default: ''
  },
  show: {
    type: Boolean,
    default: false
  },
  columns: {
    type: Array,
    default: () => []
  },
})

const emit = defineEmits(['confirm', 'cancel'])

const confirm = (e) => {
  emit('confirm', e)
}

const cancel = () => {
  emit('cancel')
}
</script>

<style lang="scss" scoped></style>
